package cn.tedu.csmall.passport;

import org.junit.jupiter.api.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class BCryptTests2 {

    @Test
    void encode(){
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String encode = encoder.encode("admin123");
        System.out.println("原文：admin123");
        System.out.println("加密后："+encode);
    }
}
